package com.kefu.chat.model;

import java.io.Serializable;

import javax.validation.constraints.NotEmpty;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


@TableName(value = "chat_leave_msg")
@Data
@ApiModel(description = "在线留言")
public class ChatLeaveMsg implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "msg_id")
    @NotEmpty
    @ApiModelProperty(value = "主键")
    private String msgId;

    /**
     * 租户
     */
    @TableField(value = "tenant_id")
    @ApiModelProperty(value = "租户")
    private String tenantId;

    /**
     * 访客
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "访客")
    private String userId;

    /**
     * 对接
     */
    @TableField(value = "pid")
    @ApiModelProperty(value = "对接")
    private String pid;

    /**
     * 会话
     */
    @TableField(value = "session_id")
    @ApiModelProperty(value = "会话")
    private String  sessionId;

    /**
     * 渠道
     */
    @TableField(value = "channel_id")
    @ApiModelProperty(value = "渠道id")
    private String channelId;

    /**
     * 渠道名称
     */
    @TableField(value = "channel_name")
    @ApiModelProperty(value = "渠道名称")
    private String channelName;

    /**
     * 客户姓名
     */
    @TableField(value = "customer_name")
    @ApiModelProperty(value = "客户姓名")
    private String customerName;

    /**
     * 客户电话
     */
    @TableField(value = "customer_phone")
    @ApiModelProperty(value = "客户电话")
    private String customerPhone;

    /**
     * 客户邮箱
     */
    @TableField(value = "customer_email")
    @ApiModelProperty(value = "客户邮箱")
    private String customerEmail;

    /**
     * 留言内容
     */
    @TableField(value = "msg_content")
    @ApiModelProperty(value = "留言内容")
    private String msgContent;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Long createTime;

    /**
     * 更新人
     */
    @TableField(value = "update_user")
    @ApiModelProperty(value = "更新人")
    private String updateUser;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    @TableField(exist=false)
    private String updateUserName;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Long updateTime;

    /**
     * 留言状态
     */
    @TableField(value = "msg_state")
    @ApiModelProperty(value = "留言状态 0=未处理，1=已处理")
    private Integer msgState;

    /**
     * 留言类型
     */
    @TableField(value = "msg_type")
    @ApiModelProperty(value = "留言类型 0=无效留言，1=有效留言")
    private Integer msgType;

    /**
     * 备注
     */
    @TableField(value = "msg_desc")
    @ApiModelProperty(value = "备注")
    private String msgDesc;
    private static final long serialVersionUID = 1L;
}